export interface IUser {
  id?: number
  name?: string
  realname?: string
  cellphone?: string
  enable?: number
  createAt?: string
  offset?: number | string
  size?: number | string
}

// 用户列表返回的ts类型
export interface IUserResponse {
  code?: number
  data?: IUserData
}

export interface IUserData {
  list?: Array<IUserList>
  totalCount?: number
}

export type IUserList = {
  id?: number
  name?: string
  realname?: string
  cellphone?: number
  enable?: number
  departmentId?: number
  roleId?: number
  createAt?: string
  updateAt?: string
}

// 创建用户需要的ts类型
export interface IUserInfo {
  id?: number
  name?: string
  realname?: string
  password?: string
  cellphone?: string
  roleId?: string
  departmentId?: string
}
